package com.cskaoyan.bean.zhangsenqi;

import com.cskaoyan.bean.MarketAddress;
import com.cskaoyan.bean.MarketCart;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author zhangsenqi
 * @Description
 * @Create 2022-06-29 20:49
 * @Version
 */
@Data
public class CheckOutData {
    private Integer grouponRulesId;
    private BigDecimal actualPrice;
    private BigDecimal orderTotalPrice;
    private Integer cartId;
    private Integer userCouponId;
    private Integer couponId;
    private BigDecimal goodsTotalPrice;
    private Integer addressId;
    private BigDecimal grouponPrice;
    private MarketAddress checkedAddress;
    private BigDecimal couponPrice;
    private Integer availableCouponLength;
    private BigDecimal freightPrice;
    private List<MarketCart> checkedGoodsList;

    public void data(CheckedOutParam checkedOutParam) {
        this.setCartId(checkedOutParam.getCartId());
        this.setAddressId(checkedOutParam.getAddressId());
        this.setCouponId(checkedOutParam.getCouponId());
        this.setUserCouponId(checkedOutParam.getUserCouponId());
        this.setGrouponRulesId(checkedOutParam.getGrouponRulesId());
    }
}
